package com.duo.enums.errorcode;

import lombok.Getter;

/**
 * @Author: Xrx
 * @Description:
 * @CreateTime: 2023/7/6 21:17
 */
@SuppressWarnings(value = "all")
@Getter
public enum DishCode implements StatusCode {

    DISH_NO_FOUND_ERROR(700, "菜品不存在"),

    DISH_NAME_EXIST_ERROR(701, "菜品名称已存在"),

    DISH_NO_CATEGORY_ERROR(702, "菜品没有分类"),

    DISH_UPLOAD_IMAGE_ERROR(703, "上传菜品图片失败"),

    DISH_ADD_ERROR(704, "新增菜品失败"),

    DISH_UPDATE_ERROR(705, "更新菜品失败");





    private int code;
    private String message;

    DishCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
